Fix build when bcc is not installed.
authorKeir Fraser <keir@xensource.com>
Fri, 16 Mar 2007 23:33:44 +0000 (23:33 +0000)
committerKeir Fraser <keir@xensource.com>
Fri, 16 Mar 2007 23:33:44 +0000 (23:33 +0000)
tools/firmware/Makefile

index b924fde793fc85f006deee30e6c306ba080be856..38338471fd7b5b6bb1829d3304f215292d542253 100644 (file)
@@ -14,7 +14,7 @@ SUBDIRS += hvmloader
 
 .PHONY: all
 all:
-       @set -e; if [ $$((`bcc -v 2>&1 | grep version | cut -d' ' -f 3 | awk -F. '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -lt $$((0x00100e)) ] ; then \
+       @set -e; if [ $$((`( bcc -v 2>&1 | grep version || echo 0.0.0 ) | cut -d' ' -f 3 | awk -F. '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -lt $$((0x00100e)) ] ; then \
        echo "***********************************************************"; \
        echo "Require dev86 package version >= 0.16.14 to build firmware!"; \
        echo "(visit http://www.cix.co.uk/~mayday for more information)"; \